import {get, post} from "./axios"

// 渠道列表
const channelList = async function(data) {
    const url = `/admin/signChannel/list`
    return await get(url, data)
}

// 添加渠道
const addChannel = async function(data) {
    const url = `/admin/signChannel/add`
    return await post(url, data)
}

// 编辑渠道
const editChannel = async function(data) {
    const url = `/admin/signChannel/edit`
    return await post(url, data)
}

// 批量操作渠道删除
const delChannel = async function(data) {
    const url = `/admin/signChannel/batchEdit`
    return await post(url, data)
}

export {
    channelList,
    addChannel,
    editChannel,
    delChannel
}
